using System;
using Server.Engines.Craft;

namespace Server.Items
{
    public class RunicDovetailSaw : BaseRunicTool
    {
        public override CraftSystem CraftSystem
        {
            get
            {
                return DefCarpentry.CraftSystem;
            }
        }

        public override int LabelNumber
        {
            get
            {
                int index = CraftResources.GetIndex(this.Resource);

                if (index >= 1 && index <= 6)
                    return 1072633 + index;
					
                return 1024137; // dovetail saw
            }
        }
		
        [Constructable]
        public RunicDovetailSaw(CraftResource resource) : base(resource, 0x1028)
        {
            this.Weight = 2.0;
            this.Hue = CraftResources.GetHue(resource);
        }

        [Constructable]
        public RunicDovetailSaw(CraftResource resource, int uses) : base(resource, uses, 0x1028)
        {
            this.Weight = 2.0;
            this.Hue = CraftResources.GetHue(resource);
        }

        public RunicDovetailSaw(Serial serial) : base(serial)
        {
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }
    }
}